import { buildGetUrl } from '@/core/http/requestUrl.js';

export default class GlobalDictCmeduController {
  static list (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/globalDictCmedu/list', 'post', params, axiosOption, httpOption);
  }

  static view (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/globalDictCmedu/view', 'get', params, axiosOption, httpOption);
  }

  static export (sender, params, fileName) {
    return sender.download('/admin/app/globalDictCmedu/export', params, fileName);
  }

  static import (sender, params) {
    return sender.upload('/admin/app/globalDictCmedu/import', params);
  }

  static printUrl (params) {
    return buildGetUrl('/admin/app/globalDictCmedu/print', params);
  }
  static add (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/globalDictCmedu/add', 'post', params, axiosOption, httpOption);
  }

  static update (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/globalDictCmedu/update', 'post', params, axiosOption, httpOption);
  }

  static delete (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/globalDictCmedu/delete', 'post', params, axiosOption, httpOption);
  }

  static deleteBatch (sender, params, axiosOption, httpOption) {
    return sender.doUrl('/admin/app/globalDictCmedu/deleteBatch', 'post', params, axiosOption, httpOption);
  }
}
